-
Notifications
You must be signed in to change notification settings - Fork 159
[Spring MVC(인증)] 권장순 미션 제출합니다. #489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
안녕하세요, 오찌!
이번 미션도 잘 부탁드립니다.
이번 미션을 진행하며 고민했던 지점들을 공유해 드립니다.
단계별 인증 구현에 대한 고민
이전 프로젝트에서는 별도의 고민 없이 Spring Security와 JWT를 바로 도입하여 소셜 로그인을 구현했습니다. 하지만 이번 미션을 통해 기본 세션과 JWT 인증을 단계별로 직접 구현해보니, 이전 방식이 요구사항에 비해 과도한 기술 스택이 아니었나 하는 생각이 들었습니다. 각 단계에서 필요한 개념들을 깊이 있게 학습할 수 있었고, 정리되는 대로 팀원분들께도 공유해 보겠습니다.
VO(Value Object) 분리 범위에 대한 질문
Member
엔티티의 필드 중, 비밀번호(password
) 필드만이라도 별도의 VO로 분리할까 고민했습니다. 하지만 현재 요구사항에서는 이러한 설계가 다소 과하다고 판단했는데, 오찌께서는 어떻게 생각하시는지 궁금합니다.로그인 실패 피드백과 보안의 트레이드오프
로그인 실패 시, "아이디가 틀렸습니다" 또는 "비밀번호가 틀렸습니다" 와 같이 명확한 정보를 제공하는 것이 사용자 경험(UX) 측면에서는 더 친절할 수 있습니다. 하지만 보안을 고려하여 "아이디 또는 비밀번호가 일치하지 않습니다" 와 같이 모호한 메시지를 반환하도록 구현했습니다. 사용자 경험을 일부 희생하더라도 보안을 강화하는 이 방향성에 대해 어떻게 생각하시나요?
테스트 코드의 주석 활용에 대한 고민
테스트 코드의 가독성을 높이기 위해
Given-When-Then
패턴에 맞춰 각 구역에 대한 설명을 주석으로 추가했습니다. '좋은 코드는 주석이 필요 없다'는 원칙과 '협업을 위해 이해하기 쉬운 주석이 도움이 된다'는 현실적인 관점 사이에서 고민이 됩니다. 이러한 주석 활용에 대한 의견이 궁금합니다.HTML 파일 구현 범위 확인
resources
디렉터리에 미션을 수행하기 위한 별도의 HTML 파일이 없어, 우선 주어진 테스트 코드를 통과시키는 수준으로만 기능을 구현했습니다. 혹시 제가 의도를 파악하지 못했거나, 정상적으로 동작하는 프론트엔드 화면이 있었다면 다시 확인하고 구현하도록 하겠습니다.